import { defHttp } from '/@/utils/http/axios';
enum Api {
  getFinishedProcess='/actProcessIns/getFinishedProcess',
  delHistoricIns='/actProcessIns/delHistoricInsByIds/'
}


export const list = (params) => defHttp.get({ url: Api.getFinishedProcess, params });

export const deleteProcessIns = (params, handleSuccess) => {
  return defHttp.post({ url: Api.delHistoricIns+params.ids,
    data:params,
    headers:{'Content-Type':'application/x-www-form-urlencoded'}
  }).then(() => {
    handleSuccess();
  });
}